package com.ys.service.Impl;

import com.ys.mapper.PositionMapper;
import com.ys.pojo.Position;
import com.ys.service.PositionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("positionService")
public class PositionServiceImpl  implements PositionService {
    @Resource
    private PositionMapper positionMapper;
    @Override
    public Position objPosition(int id) {
        return positionMapper.objs(id);
    }

    @Override
    public List<Position> selectAll() {
        return positionMapper.selectAll();
    }

    @Override
    public boolean insert(String name) {
        return positionMapper.insert(name);
    }
}
